#ifndef __USER_REGION_BASE_WIDGET_INCLUDE__
#define __USER_REGION_BASE_WIDGET_INCLUDE__

#include "UserRegionDrawPropertyDef.h"
#include "UserRegionDef.h"
#include <QtWidgets/QDialog>
#include <QtGui/QShowEvent>
#include <QtGui/QCloseEvent>

class UserRegionBaseWidget :public QDialog {
	Q_OBJECT
public:
	UserRegionBaseWidget(bool isNew,int regionType,QWidget* parent = NULL);
	virtual ~UserRegionBaseWidget();
	
public:
	bool IsNewRegionMode() { return isNewRegion; }
signals:
	void UserRegionSettingStart(int regionType);
	void UserRegionSettingEnd();

protected:
	virtual void showEvent(QShowEvent *event);
	virtual void closeEvent(QCloseEvent *event);

private:
	int userRegionWidgetType;
	bool isNewRegion;
};

#endif